package com.chushouya.order.dto.api.clerk.action;

import com.chushouya.order.constants.ClerkOrderActionEnum;
import com.chushouya.product.dto.api.evaluate.EvaluateResultItemApiDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@ApiModel("业务员提交订单质检")
@Data
public class ClerkSubmitQualityAction extends ClerkBaseAction {

    public ClerkSubmitQualityAction() {
        super.setOrderAction(ClerkOrderActionEnum.SUBMIT_QUALITY);
    }

    @ApiModelProperty("订单ID")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @ApiModelProperty("机型是否吻合0是1否")
    private Integer isOriginal;

    @ApiModelProperty("机型Id")
    private Long productId;

    @ApiModelProperty("质检选项")
    private List<EvaluateResultItemApiDTO> qualityOption;

    @ApiModelProperty("质检价")
    @NotNull(message = "质检价不能为空")
    private BigDecimal qualityPrice;

    @ApiModelProperty("设备meid")
    private String meid;

    @ApiModelProperty("质检说明")
    private String qualityRemark;

}
